package com.xgry.bpm.config.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @program: rtpksps-kss
 * @description: 区分登录方式
 * @author: Chen
 * @create: 2019-11-05 15:15
 **/
//自定义的登录令牌，继承org.apache.shiro.authc.UsernamePasswordToken
public class UserToken extends UsernamePasswordToken {
    private String loginType;

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public UserToken(final String username, final String password, String loginType) {
        super(username, password);
        this.loginType = loginType;
    }
}
